package com.luobo.shiro.service.impl;

import com.luobo.shiro.domain.entity.Permission;
import com.luobo.shiro.domain.mapper.PermissionMapper;
import com.luobo.shiro.service.IPermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionServiceImpl implements IPermissionService {

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> getRolePermissions(Integer roleId) {
        return permissionMapper.getRolePermissions(roleId);
    }
}
